﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CadastroCategoria.aspx.cs"
    Inherits="web.admin.CadastroCategoria" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Área Restrita</title>
</head>
<link href="../include/css/style.css" rel="stylesheet" type="text/css" />
<body>
    <form id="form1" runat="server">
    <br />
    <center>
        <table width="400">
            <tr>
                <td style="vertical-align: middle;">
                    <center>
                        <img src="../images/admin/icone_categoria.png" />
                    </center>
                </td>
                <td style="vertical-align: middle; width: 80%; text-align: left">
                    <h2>
                        <b>Cadastro de Categorias</b></h2>
                </td>
            </tr>
        </table>
    </center>
    <br />
    <br />
    <center>
        <div style="overflow: auto; height: 469px">
            <table border="0" cellpadding="4" cellspacing="0" width="500">
                <tr>
                    <td>
                        <table border="0" cellpadding="4" cellspacing="4" align="left" width="500">
                            <tr>
                                <td colspan="2" style="color: White; background-color: #507CD1;">
                                </td>
                            </tr>
                            <tr>
                                <td align="right" nowrap>
                                    <asp:Label ID="lblData" runat="server" Text="Título:"></asp:Label>
                                </td>
                                <td align="left">
                                    <asp:TextBox class="input-text" ID="txtDescricao" runat="server" Width="300px"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*"
                                        ControlToValidate="txtDescricao"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="left">
                                    <asp:Label ID="Label1" runat="server" Text="Ordem:"></asp:Label>
                                </td>
                                <td align="left">
                                    <asp:TextBox class="input-text" ID="txtOrdem" runat="server" Width="20px"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*"
                                        ControlToValidate="txtOrdem"></asp:RequiredFieldValidator>
                                    <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="Digite um número"
                                        Type="Integer" MaximumValue="2000" MinimumValue="0" ControlToValidate="txtOrdem"></asp:RangeValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="left" nowrap>
                                    <asp:Label ID="Label3" runat="server" Text="Categoria Pai:"></asp:Label>
                                </td>
                                <td align="left">
                                    <asp:DropDownList ID="cboCategoriaPai" runat="server">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td align="left">
                                    <asp:Label ID="Label2" runat="server" Text="Ativo:"></asp:Label>
                                </td>
                                <td align="left">
                                    <asp:CheckBox ID="chkAtivo" Checked="true" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td align="left">
                                    <asp:Label ID="Label6" runat="server" Text="Link:"></asp:Label>
                                </td>
                                <td align="left">
                                    <asp:TextBox class="input-text" ID="txtLink" runat="server" Width="500px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:HiddenField ID="hdnCodigo" runat="server" />
                                </td>
                                <td align="left">
                                    <br />
                                    <asp:Button ID="btnSalvar" runat="server" Text="Salvar" OnClick="btnSalvar_Click" />
                                    <asp:Button ID="btnVoltar" runat="server" Text="Voltar" OnClick="btnVoltar_Click"
                                        CausesValidation="False" />
                                </td>
                            </tr>
                        </table>
                        <br />
                        <br />
                        <br />
                        <br />
                        <asp:Label ID="lblMensagem" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
            </table>
        </div>
    </center>
    </div>
    </form>
</body>
</html>
